package br.com.obardavez.resources;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

import br.com.obardavez.entity.Contato;
import br.com.obardavez.service.ContatoService;

import com.google.inject.Inject;

@Path("/teste")
public class TesteResource {

	@Inject
	private ContatoService contatoService;
	
	@GET
	@Produces("application/json")
	public List<Contato> getLayers() {
		return contatoService.findAll();
    }


	
	
}
